package class_1_6;
class A{
    public A(){
        this.func();
    }
    public void func(){
        System.out.println("A的func");
    }
}
public class B extends A{
    private int num=10;
    public B(int num){
        this.num=num;
    }
    public void func(){
        System.out.println("B的func，num="+num);
    }

    public static void main(String[] args) {
        new B(100);
    }
}
